import { defineStore } from "pinia";
import { computed, ref } from "vue";
export const useLayoutStore = defineStore("setting", ()=>{
    // 是否折叠侧边栏
    const isFold = ref(true) // 默认展开
    // 侧边栏宽度,计算属性
    const asideWidth = computed(()=>isFold.value?"200px":"64px")

    // 
    const foldIcon = computed(()=>isFold.value?"展开":"折叠")

    return {isFold,asideWidth,foldIcon}
})